package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.base.PageResponse;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from sys_user where username = #{username}")
    UserVo selectByName(String username);

    Boolean AddUser(User user);


    UserVo finduserPage(UserDto userDto);

    Page<User> seletePage(UserDto userDto);

    Boolean addUser(User user);

    void deleteUseById(String userIds);



    void updateByPrimaryKeySelective(User user);


    User selectByPrimaryKey(Long id);

}
